﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for report
/// </summary>
public class report
{
	public static bool report2(string username,string complain,string problem)

    {
        if(string.IsNullOrEmpty(username) || string.IsNullOrEmpty(complain )|| string.IsNullOrEmpty(problem))
        {

            return false;

        }
        else
           using (SWE2Entities DB = new SWE2Entities())
        {
            Report_Table a = new Report_Table();
            a.Complain=complain;
               a.Username=username;
               a.Problem=problem;
            DB.Report_Table.Add(a);
            DB.SaveChanges();

        }
        return true;
    }
}


